﻿using Huayou.Common.Database;
using Huayou.Utils;
using HySoft.Cash.BaseClass;
using HySoft.Cash.DB;
using HySoft.Cash.Structure;
using System;
using System.Data;
using System.Web.UI;

namespace HySoft.Cash.Business
{
    public class TcapitalFlowingBN : BaseBusiness
    {
        private TcapitalFlowingDB db;

        public TcapitalFlowingBN(Page page)
            : base(page)
        {
            this.db = null;
            this.db = new TcapitalFlowingDB(base.curDBOperater);
        }

        public TcapitalFlowingBN(Page page, DBOperate oper)
            : base(page, oper)
        {
            this.db = null;
            this.db = new TcapitalFlowingDB(base.curDBOperater);
        }

        public bool Add(TcapitalFlowingDT detail)
        {
            bool flag = false;
            try
            {
                try
                {
                    flag = this.db.ADD(detail);
                }
                catch (Exception exception)
                {
                    throw exception;
                }
            }
            finally
            {
            }

            return flag;
        }
    }
}
